toNotEmptyList

Returns a NotEmptyList containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.